*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img{
    display: block;
    width: 100%;
}
a{
    text-decoration: none;
}
ul{
    list-style: none;
}
.coupons{
    margin: 0 auto;
    // max-width: 800px;
    // max-width: 300px;
    .title{
        display: flex;
        justify-content: space-between;
        span:nth-child(2){
        color: gray;
        } 
    }
    .display{
        width: 100%;
        height: 70px;
        display: flex;
        flex-direction: column;
        background-color: #ff9b25;
        .coupons-top{
            height: 50%;
            display: flex;
            justify-content: space-between;
            span{
                font-size: 16px;
                flex: 1;
                color: white;
            }
            span:nth-child(1){
                display: inline-block;
                margin-left: 5px;
            }
            span:nth-child(2){
                text-align: center;
                font-weight: 600;
            }
            span:nth-child(3){
                text-align: right;
                display: inline-block;
                margin-right: 5px;
            }
        } 
        a{
            padding-left: 10px;
            color: white;
            font-weight: 700;
            span::before{
                content: '';
                display: inline-block;
                width: 12px;
                height: 12px;
                border-left: 2px solid white;
                border-bottom: 2px solid white;
                transform: rotate(45deg);
            }
        }  
    }
    .conten{
        margin: 10px 10px;
        .card{
            border-radius: 10px;
            background-color: #55bc75;
            box-shadow: 1px -1px 8px grey;
            margin-top: 10px;
            position: relative;
            img{
                height: 80px;
                width: 80px;
                position: absolute;
                top: 0;
                right: 0;
            }
            .card-top{
                height: 135px;                
                .time{
                    margin-top: 20px;
                    span:nth-child(1){
                        font-size: 12px;
                        color: white;
                        padding-left: 12px;
                    }
                    span:nth-child(2){
                        display: inline-block;
                        margin-left: 15px;
                        font-size: 13px;
                        color: #bdf3ce;
                        padding: 3px;
                        border-radius: 5px;
                        background-color: #2a603b;
                    }
                }
                h2{
                    padding:20px 0 0 10px;
                    color: white;
                }
                p{
                    font-size: 14px;
                    padding-left: 12px;
                    color: #bdf3ce;
                    margin-top: 10px;
                }
                               
            }
            .card-bottom{
                height: 35px;
                display: flex;
                align-items: center;
                background-color: white;
                position: relative;
                &::before{
                    content: '';
                    position: absolute;
                    top: -6px;
                    left: 0;
                    width: 100%;
                    height: 8px;
                    background: url(../images/icon.png);
                    background-size: 20px 10px;
                }
                a:nth-child(1){
                    border-right: 1px dashed black;
                }
                a{
                    height: 20px;
                    flex: 1;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    color: #888888;
                }
            }
        }
    }
    .violet{
        margin: 10px 10px; 
        position: relative; 
        img{
            height: 80px;
            width: 80px;
            position: absolute;
            top: 29px;
            right: 0;
        }     
        .violet-top{
        background-color: #a974bc;
        border-radius: 10px;
        height: 140px;
        margin-top: 10px;
        box-shadow: 1px -1px 6px grey;
        .yuan{
            color: white;
            padding: 15px 0 0 10px;
            :nth-child(2){
                font-size: 37px;
                
            }
        }
        .bm_name2{
            margin: 20px 0 0 10px;
            font-size: 12px;
            color: white;
        }
        .bm_name3{
            span:nth-child(1){
                font-size: 13px;
                color: white;
                padding-left: 12px;
            }
            span:nth-child(2){
                display: inline-block;
                margin-left: 70px;
                font-size: 13px;
                color: #bdf3ce;
                padding: 3px;
                border-radius: 5px;
                background-color: #6a4279;
            }
        }
        }
    }
    .voucher{
        margin: 20px 10px 10px 10px;
        box-shadow: 1px -1px 6px grey;
        overflow: hidden;
        position: relative;
        background-color: #a974bc;
        border-radius: 10px;
        img{
            height: 80px;
            width: 80px;
            position: absolute;
            top: 0;
            right: 0;
        }  
        .voucher-top{
            height: 140px;
            .buck{
                color: white;
                padding: 15px 0 0 10px;
                :nth-child(2){
                    font-size: 37px;                  
                }
            }
            .bm_name4{
                margin: 20px 0 0 10px;
                font-size: 12px;
                color: white;
            }
            .bm_name5{
                span:nth-child(1){
                    font-size: 13px;
                    color: white;
                    padding-left: 12px;
                }
                span:nth-child(2){
                    display: inline-block;
                    margin-left: 70px;
                    font-size: 13px;
                    color: #bdf3ce;
                    padding: 3px;
                    border-radius: 5px;
                    background-color: #6a4279;
                }
            }
            }
            .voucher-bottom{
                height: 40px;
                background-color: white;
                display: flex;
                align-items: center;
                a:nth-child(-n+2){
                    border-right: 1px dashed gray;
                }
                a{
                    flex: 1;
                    height: 50%;
                    color: gray;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
            }
    }
    .add{
        height: 130px;
        border: 2px dashed gray;
        margin: 15px 10px 0 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        a{
            img{
                width: 60px;
                height: 60px;
            }
        }
        span{
            color: gray;
        }
    }
}